
capture drop TEMP_SAMPLE
reg sourcing   ln_gdppc FE_cohort* FE_main_destination* FE_main_product*  , vce(robust)
gen TEMP_SAMPLE=e(sample)

*PANEL A

eststo clear
eststo: reg sourcing   ln_q_b_all FE_cohort* if TEMP_SAMPLE==1 , vce(robust)
eststo: reg sourcing   ln_gdp  FE_cohort*    if TEMP_SAMPLE==1 , vce(robust)
eststo: reg sourcing   ln_d  FE_cohort*      if TEMP_SAMPLE==1 , vce(robust)
eststo: reg sourcing   ln_pop   FE_cohort*   if TEMP_SAMPLE==1 , vce(robust)
eststo: reg sourcing   ln_gdppc FE_cohort*   if TEMP_SAMPLE==1 , vce(robust)
eststo: reg sourcing ln_q_b_all FE_cohort* FE_main_destination* FE_main_product* if TEMP_SAMPLE==1 , vce(robust)

esttab using "${tables}\TableC9PanelA.tex", ///
  label replace booktabs b(3) se(3) noconstant obslast substitute(\_ _) ///
  drop(_cons FE_*) order( ) /// 
  stats(r2   N   , fmt( 2 %12.0fc  )  ///
  labels(`"\(R^{2}\)"'  "Obs."  ))   ///
  star(* 0.10 ** 0.05 *** 0.01) ///
  nonotes  

*PANEL B
 
eststo clear
eststo: reg sourcing ln_q_b_all FE_main_product* FE_main_activity* FE_Cat* ///
		FE_Dateofincorporation* FE_main_country*, vce(robust)
eststo: reg sourcing ln_q_b_all FE_main_product* FE_main_activity* FE_Cat* ///
		FE_Dateofincorporation* FE_main_country* lassets, vce(robust)
eststo: reg sourcing ln_q_b_all FE_main_product* FE_main_activity* FE_Cat* ///
		FE_Dateofincorporation* FE_main_country* lsales, vce(robust)
eststo: reg sourcing ln_q_b_all FE_main_product* FE_main_activity* FE_Cat* ///
		FE_Dateofincorporation* FE_main_country* lemployees, vce(robust)
			
esttab using "${tables}\TableC9PanelB.tex", ///
  label replace booktabs b(3) se(3) noconstant obslast substitute(\_ _) ///
  drop(_cons FE_*) order( ) /// 
  stats(r2   N   , fmt( 2 %12.0fc  )  ///
  labels(`"\(R^{2}\)"'  "Obs."  ))   ///
  star(* 0.10 ** 0.05 *** 0.01) ///
  nonotes  
 